<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>新增激活码</h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="form">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">新增数量:</label>
                            <div class="col-sm-6">
                                <input id="total" name="total" placeholder="数量"
                                       class="form-control" type="text" maxlength="150">
                            </div>
                            <label class="col-sm-2 control-label" style="text-align: left"></label>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">商户平台:</label>
                            <div class="col-sm-8">
                                <select data-placeholder="" class="form-control chosen-select"  tabindex="30" id="centreId" name="centreId">
                                    <option value="" selected="selected">选择商户平台</option>
                                    <option th:each="item: ${centre}" th:text="${item.name}"  th:value="${item.centreId}"></option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">选择服务内容:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="typeId" value="1"/>王权会员
                                </label>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">选择服务期限:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="dueTime" value="0"/>无限期
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="dueTime" value="1"/>包月
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="dueTime" value="2"/>包季度
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="dueTime" value="3"/>包年
                                </label>
                            </div>
                        </div>

                        <div class="form-group text-center">
                            <div class="col-sm-8 col-sm-offset-2">
                                <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
                                <div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="mall/advert/include::footer"></div>
<script type="text/javascript" src="/js/appjs/sys/vipCdk/addVipCdkPage.js">
</script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
</script>
</body>

</html>
